function toFavorable_list(type) {
	nextView("favorable_list.html?type=" + type);	
}

$(function() {
	if(dataGet("openId") == "") {
		dataSave("loginType", "favorable_home");
		nextView("../../../page/OAuthGetCodeLogin.html");
	}
	
	validSession();
	if(!dataGet('isLogined')){
		dataSave("openId", "");
		dataSave("loginType", "favorable_home");
		nextView("../../../page/OAuthGetCodeLogin.html");
		return;
	}
});